package lab02.test05;

/**
 * Created by V555 on 2017/10/14.
 */
public class Cube {
    //属性：长、宽、高
    int length;
    int wide;
    int high;
    //初始化
    void set(int length, int wide, int high){
        this.length=length;
        this.wide=wide;
        this.high=high;
    }
    int getLength(){
        return length;
    }
    int getWide(){
        return wide;
    }
    int getHigh(){
        return high;
    }
    int volume(){
        return length*wide*high;
    }
}
